added GdkRectangle *clip_rect to gtk_widget_get_snapshot().
author21:10:15 Tim Janik <timj@imendio.com>
Wed, 21 May 2008 19:15:12 +0000 (19:15 +0000)
committerTim Janik <timj@src.gnome.org>
Wed, 21 May 2008 19:15:12 +0000 (19:15 +0000)
commitb3d160ced5fd07f7ba5e8d2a61386e77882993a2
tree657522a0fad2410ca66da7e9c4ba05af511916c0
parentaa4ab3f03731f269d8c3a322cee653bc88fec3a4
added GdkRectangle *clip_rect to gtk_widget_get_snapshot().

2008-05-21 21:10:15  Tim Janik  <timj@imendio.com>

        * gtk/gtkwidget.h: added GdkRectangle *clip_rect to gtk_widget_get_snapshot().

        * gtk/gtkwidget.c: clip the returned snapshot pixmap to clip_rect.
        return snapshot pixmap coordinates widget relative in *clip_rect.

        * tests/testgtk.c: fixed bogus NULL pointer unref.

svn path=/trunk/; revision=20124
ChangeLog
gtk/gtkwidget.c
gtk/gtkwidget.h
tests/testgtk.c